package com.qf.service;

import com.qf.pojo.Cart;

import java.util.List;

public interface CartService {

    int saveCart(Cart cart);

    //根据用户Id读出购物车
    List<Cart> loadCart(Integer uid);

    Cart cartExist(Integer uid, Integer gid);

    int updateCart(Integer uid, Integer gid, int num);

    //删除某位用户购物车的某个商品
    int deleteOne(Integer uid, Integer gid);
}
